package com.guijq.selfcode.dynamicproxy;

import java.lang.reflect.Proxy;

/**
 * @author yangjf
 * @time 2019-07-24 9:36
 */
public class DynamicProxyMain {
    public static void main(String[] args) {
        IUserService userService = (IUserService) Proxy.newProxyInstance(IUserService.class.getClassLoader(), new Class[]{IUserService.class}, new ImplHandler());
        userService.request();
    }
}
